﻿using Newtonsoft.Json;
using OrkutAPILibrary.Enums;

namespace OrkutAPILibrary.Entities
{
    /// <summary>
    /// Orkut Profile Update Activity
    /// </summary>
    public class OrkutProfileUpdateActivity : OrkutActivity
    {
        /// <summary>
        /// Gets the Activity type.
        /// </summary>
        /// <returns></returns>
        public override ActivityType GetActivityType()
        {
            return ActivityType.PROFILE_UPDATE;
        }

        /// <summary>
        /// Gets or sets the updated fields.
        /// </summary>
        /// <value>The updated fields.</value>
        [JsonProperty(PropertyName = "profileFields")]
        public ProfileFields[] UpdatedFields { get; set; }
    }

    /// <summary>
    /// Profile Fields
    /// </summary>
    public class ProfileFields
    {
        /// <summary>
        /// Gets or sets the field.
        /// </summary>
        /// <value>The field.</value>
        [JsonProperty(PropertyName = "type")]
        public string Field { get; set; }
    }
}
